package com.example.contestsystem.Entity;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

@Entity
@Table(name = "join_team")
public class JoinTeam {
    /**
     * stu to team: 1 to n;
     */
    @Id
    private int joinId;
    private String teamId;
    private int stuAccount;
    private String contestId;

    public int getJoinId() {
        return joinId;
    }

    public void setJoinId(int joinId) {
        this.joinId = joinId;
    }

    public String getTeamId() {
        return teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }

    public int getStuAccount() {
        return stuAccount;
    }

    public void setStuAccount(int stuAccount) {
        this.stuAccount = stuAccount;
    }

    public String getContestId() {
        return contestId;
    }

    public void setContestId(String contestId) {
        this.contestId = contestId;
    }
}
